<?php use application\Comm\Func;?>
<link rel="stylesheet" href="<?php echo Func::staticUrl('stylesheets/css/index.css')?>">
<link rel="stylesheet" href="<?php echo Func::staticUrl('css/apply/apply.css')?>">
<!--头部-->
<div class="banner_img1">
	<a href="javascript:void(0);" style="background:url(images/apply/bannerdingzhi.jpg) no-repeat center top;height:542px;"></a>
</div>
<div class="apply_forms">
	<div class="container">
		<div class="subscribe">
			<h1>预约免费量尺设计申请</h1>
			<p class="fbt">只需10秒，提交免费设计申请，剩下的交给我们......</p>
			<form id="apply_form">
				<div class="apply_con">
					<ul class="apply_list input_focus">
						<li>
							<i class="apply_name"></i>
							<input type="text" name="Appuser[name]" class="name inputtext require" value="输入您的姓名" data-reqtips="姓名不能为空">
						</li>
						<li>
							<i class="apply_tel"></i>
							<input type="text" name="Appuser[mobile]" class="tel inputtext require rmobile" value="输入您的手机号码" data-reqtips="手机号不能为空">
						</li>
						<li>
							<div class="AddressList address_list clearfix">
								<label class="select_label fl">
									<input type="hidden" name="Appuser[province_fix]">
									<select class="province require" name="Appuser[province]" data-option="省province"  data-reqtips="省份不能为空" >
										<option>请选择</option>
									</select>
								</label>
								<label class="select_label fr">
								<input type="hidden" name="Appuser[city_fix]">
									<select class="city require" name="Appuser[city]" data-option="市city"  data-reqtips="城市不能为空">
										<option>请选择</option>
									</select>
								</label>
							</div>
						</li>
					</ul>
				</div>
				<a href="javascript:;" class="apply_sub" data-toggle="applysubmit" data-before="freeApplyBefore" data-after="freeApplyAfter">提交申请即获600元礼包</a>	
			</form>
		</div>
	</div>
</div>
<div class="person">
        <h1>您是第</h1>
        <div class="demo">
            <span class="counter">201345</span>
        </div>
        <h1>位享受定制服务的客户</h1>
</div>
<div class="apply_route">
	<div class="container">
		<img src="images/apply/dz.png" alt="">
	</div>
</div>
<div class="apply_rotede">
	<div class="container">
		<img src="images/apply/rr.png" alt="">
	</div>
</div>
<!--尾部-->   

</div>
<script>
    $(".AddressList").Address();
</script>
<!-- 预约人数随机产生 -->
<script src="<?php echo Func::staticUrl('javascripts/jquery.countup.min.js')?>"></script>
<script src="<?php echo Func::staticUrl('javascripts/waypoints.min.js')?>"></script>

<script type="text/javascript">
    $('.counter').countUp();
</script>

<script type="text/javascript">
      /*公共回调函数*/
      var ACT_KID='gwapply';
      function freeApplyBefore(applyInfo){
          return true;//如返回false,则提交服务器数据动作将中断
      }
      function freeApplyAfter(applyInfo,applyResult){
          switch(applyResult.code){
              case 200:alert('您好，您已成功预约皮阿诺上门量尺设计服务，我们的客服人员将在24小之内与您沟通详细情况，请留意接听。');break;//token error;
              case 300:alert('非法提交');break;//token error;
              case 301:alert('活动ID错误');break;//kid error
              case 302:alert('您已经报名，请勿重复报名');break;//您已报名
              case 303:alert('服务器错误，请稍后重试');break;//服务器返回错误
          }
      }
  </script>
